<?xml version="1.0"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<%@ include file="include/Imports.jsp"%>
<title>APAC Resource Tracker</title>

<script type="text/javascript">
	function onInvokeAction(id) {
		setExportToLimit(id, '');
		createHiddenInputFieldsForLimitAndSubmit(id);
	}
	function onInvokeExportAction(id) {
		var parameterString = createParameterStringForLimit(id);
		location.href = '${resources_url}?' + parameterString;
	}
</script>
	
</head>

<body>

	<div id="main">

		<!-- Tray -->
		<%@ include file="include/Tray.jsp"%>


		<hr class="noscreen" />

		<!-- Menu -->
		<%@ include file="include/Menu.jsp"%>


		<hr class="noscreen" />

		<!-- Columns -->
		<div id="cols" class="box">

			<!-- Aside (Left Column) -->
			<%@ include file="include/Aside.jsp"%>


			<hr class="noscreen" />

			<!-- Content (Right Column) -->
			<div id="content" class="box">
				<%@ include file="include/Notification.jsp"%>
				<h1>New Resource</h1>

				<h5>This is a system that will cater to the needs of APAC Sales
					Department of 77 Global Services.s</h5>
					
				<form:form action="${resources_new_url}" commandName="employee" method="post" enctype="multipart/form-data"> 
					<fieldset>
						<legend>Resource Details</legend>
						<table>
							<tr>
								<td><b>ID No.</b></td>
								<td><form:input path="empIdNo" id="rpidno" type="text" value="" /></td>
							</tr>
							<tr>
								<td><b>Last Name</b></td>
								<td><form:input path="empLastName" id="rplastname" type="text" value="" /></td>
							</tr>
							<tr>
								<td><b>First Name</b></td>
								<td><form:input path="empFirstName" id="rpfirstname" type="text" value="" /></td>
							</tr>
							<tr>
								<td><b>Present Address</b></td>
								<td><form:input path="empPresAddr" id="rppresentaddress" type="text" value="" /></td>
							</tr>
							<tr>
								<td><b>Mobile Nos.</b></td>
								<td><form:input path="empCelNo" id="rpmobilenumber" type="text" value="" /></td>
							</tr>
							<tr>
								<td><b>Landline Nos.</b></td>
								<td><form:input path="empLandNo" id="rplandlinenumber" type="text" value="" /></td>
							</tr>
							<tr>
								<td><b>Upload Picture</b></td>
								<td><input name="file" id="rppicture" type="file" value="" /></td>
							</tr>

						</table>

					</fieldset>
					<fieldset>
						<legend>Education</legend>
						<table>
							<tr>
								<td><b>College</b></td>
								<td><form:textarea path="empColl" id="rpcollege" type="text" value="" /></td>
							</tr>
							<tr>
								<td><b>Graduate School</b></td>
								<td><form:textarea path="empGrad" id="rpgraduateschool" type="text"
									value="" /></td>
							</tr>
						</table>
					</fieldset>
					<fieldset>
						<legend>In Case of Emergency</legend>
						<table>
							<tr>
								<td><b>Contact Person</b></td>
								<td><form:input path="empCntctPrsn" id="rpcontactperson" type="text" value="" /></td>
							</tr>
							<tr>
								<td><b>Relationship To</b></td>
								<td><form:input path="empCntctRel" id="rprelationshipto" type="text" value="" /></td>
							</tr>
							<tr>
								<td><b>Address</b></td>
								<td><form:input path="empCntctAddr" id="rpaddress" type="text" value="" /></td>
							</tr>
							<tr>
								<td><b>Contact Number</b></td>
								<td><form:input path="empCntctNo" id="rpcontactnumber" type="text" value="" /></td>
							</tr>
						</table>
					</fieldset>
					<fieldset>
						<legend>Government</legend>
						<table>
							<tr>
								<td><b>SSS</b></td>
								<td><form:input path="empSssNo" id="rpsss" type="text" value="" /></td>
							</tr>
							<tr>
								<td><b>Pagibig</b></td>
								<td><form:input path="empHdmfNo" id="rppagibig" type="text" value="" /></td>
							</tr>
							<tr>
								<td><b>Phil Health</b></td>
								<td><form:input path="empPhlHlthNo" id="rpphilhealth" type="text" value="" /></td>
							</tr>
							<tr>
								<td><b>TIN</b></td>
								<td><form:input path="empTin" id="rptin" type="text" value="" /></td>
							</tr>
						</table>
					</fieldset>
					<fieldset>
						<legend>77 Employee Info</legend>
						<table>
							<tr>
								<td><b>Date Hired</b></td>
								<td><form:input path="empDateHired" id="eidatehired" type="text" value="" /></td>
							</tr>
						</table>
					</fieldset>
					<input type="submit" value="Submit"/>
				</form:form>

			</div>

			<!-- /content -->

		</div>
		<!-- /cols -->

		<hr class="noscreen" />

		<!-- Footer -->
		<%@ include file="include/Footer.jsp"%>

	</div>
	<!-- /main -->

</body>
</html>